<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    



    <script>

        // 变量赋值
        var num1 = 30,num2 = 40
        // 三目运算
        num1>num2? console.log(num1):console.log(num2);
    </script>
</body>
</html>